<?php

class Example_Element_Site_Masthead
    extends OOWP_Element
{
    public function __construct(array $args = array( ))
    {
        $input = $this->merge_arguments(array(
            'attributes' => array(
                'role' => 'banner',
            ),
            'contents' => array(
                new OOWP_Element(array(
                    'attributes' => array(
                        'id' => 'site-title'
                    ),
                    'contents' => array(
                        new OOWP_Atom_BlogTitle(array(
                            'formatting' => '%s',
                        )),
                    ),
                    'tag' => 'h1',
                )),
                new OOWP_Element(array(
                    'attributes' => array(
                        'id' => 'site-description',
                    ),
                    'contents' => array(
                        new OOWP_Atom_BlogDescription( ),
                    ),
                    'tag' => 'h2',
                )),
            ),
            'tag' => 'hgroup'
        ), $args);

        parent::__construct($input);
    }
}
